projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3d11ec
)
* lisp/rect.el (delete-whitespace-rectangle-line): Don't cross EOL.
author
Johan Bockgård
<bojohan@gnu.org>
Sun, 12 Apr 2015 13:50:02 +0000
(15:50 +0200)
committer
Johan Bockgård
<bojohan@gnu.org>
Sun, 12 Apr 2015 13:50:02 +0000
(15:50 +0200)
lisp/rect.el
patch
|
blob
|
history
diff --git
a/lisp/rect.el
b/lisp/rect.el
index 75585d2f080c7ff55b5213a97bca862059b9830c..acd3a48f2daad68c851c08201da184d2324f7440 100644
(file)
--- a/
lisp/rect.el
+++ b/
lisp/rect.el
@@
-346,7
+346,8
@@
no text on the right side of the rectangle."
(defun delete-whitespace-rectangle-line (startcol _endcol fill)
(when (= (move-to-column startcol (if fill t 'coerce)) startcol)
(unless (= (point) (point-at-eol))
- (delete-region (point) (progn (skip-syntax-forward " ") (point))))))
+ (delete-region (point) (progn (skip-syntax-forward " " (point-at-eol))
+ (point))))))
;;;###autoload
(defalias 'close-rectangle 'delete-whitespace-rectangle) ;; Old name